<template>
	<view class="payment-detail">
		<!-- 标题栏 -->
		<view class="header">
			<text>电费</text>
			<text class="check-bill">查看账单</text>
		</view>

		<!-- 电费信息 -->
		<view class="info-card">
			<view class="icon-title">
				<image class="payment-icon" src="/static/icons/electricity.png" />
				<text>电费</text>
			</view>

			<view class="amount-info">
				<text class="label">可用余额</text>
				<text class="amount">¥300.00</text>
			</view>

			<view class="account-info">
				<view class="info-item">
					<text class="label">户号</text>
					<text class="value">0690090170</text>
				</view>
				<view class="info-item">
					<text class="label">户主</text>
					<text class="value">蒋峰</text>
				</view>
				<view class="info-item">
					<text class="label">缴费单位</text>
					<text class="value">南航供电公司</text>
				</view>
			</view>
		</view>

		<!-- 支付按钮 -->
		<view class="pay-button">
			<button type="primary">立即充值</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				accountInfo: {
					accountNo: '0690090170',
					userName: '蒋峰',
					company: '南航供电公司',
					balance: 300.00
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	.payment-detail {
		min-height: 100vh;
		background-color: #f5f5f5;

		.header {
			padding: 20rpx 30rpx;
			display: flex;
			justify-content: space-between;
			align-items: center;
			background-color: #fff;

			.check-bill {
				color: #007AFF;
				font-size: 28rpx;
			}
		}

		.info-card {
			background-color: #fff;
			padding: 30rpx;
			margin: 20rpx;
			border-radius: 12rpx;

			.icon-title {
				display: flex;
				align-items: center;
				margin-bottom: 30rpx;

				.payment-icon {
					width: 48rpx;
					height: 48rpx;
					margin-right: 20rpx;
				}
			}

			.amount-info {
				margin: 40rpx 0;

				.label {
					font-size: 28rpx;
					color: #333;
				}

				.amount {
					display: block;
					font-size: 48rpx;
					font-weight: bold;
					margin-top: 10rpx;
				}
			}

			.account-info {
				.info-item {
					display: flex;
					justify-content: space-between;
					margin-bottom: 20rpx;

					.label {
						color: #666;
						font-size: 28rpx;
					}

					.value {
						color: #333;
						font-size: 28rpx;
					}
				}
			}
		}

		.pay-button {
			padding: 30rpx;

			button {
				width: 100%;
				background-color: #007AFF;
				color: #fff;
				border-radius: 8rpx;
			}
		}
	}
</style>